package com.mew.common.rest.gold;

import com.zebra.common.ZebraBaseMessage;
import io.netty.buffer.ByteBuf;
import lombok.*;

import java.util.List;

/**
 * @author dylin
 * @create 2021/5/24
 */
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class TranRecordResponse extends ZebraBaseMessage<TranRecordResponse> {
    private List<TranRecordMessage> tranRecordMessageList;
    @Override
    public void write(ByteBuf b) {

        writeInt(b,tranRecordMessageList.size());
        for (TranRecordMessage tranRecordMessage : tranRecordMessageList) {
            tranRecordMessage.write(b);
        }
    }

    @Override
    public TranRecordResponse read(ByteBuf byteBuf) {
        return null;
    }
}
